import fetch from 'common/src/utils/fetch';

let api = {
    // 查询列表
    getList(data) {
        return fetch({
            url: '/api/designservice/settingTutorDirectorsNo/queryByPage',
            method: 'post',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        });
    },
    // 新增
    insert(data) {
        return fetch({
            url: '/api/designservice/settingTutorDirectorsNo/insert',
            method: 'post',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        });
    },
    // 修改
    update(data) {
        return fetch({
            url: '/api/designservice/settingTutorDirectorsNo/update',
            method: 'put',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        });
    },
    // 删除
    delete(data) {
        return fetch({
            url: '/api/designservice/settingTutorDirectorsNo/delete',
            method: 'delete',
            headers: {
                'Content-Type': 'application/json'
            },
            data
        });
    }
};

export default api;
